<?php

namespace App\Models\Member;

use App\Models\BaseModel;

class Share extends BaseModel
{
    protected $fillable = [
        'id', 'store_id', 'type', 'num',
        'method', 'radio',
        'created_at', 'updated_at'
    ];
    // 通过店铺ID 获取 分享奖金信息
    public function storeShare($storeId)
    {
        return $this->where('store_id', $storeId)
        ->first();
    }
}
